package com.java.androidmarket.dao;

import com.java.androidmarket.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * description:
 * author:张腾
 * date:2021-04-24
 */
@Mapper
public interface UserDao {

    User login(String userName);

    String getUserName(int userId);

    User getUser(int userId);

    int uploadHead(@Param("userId") int userId, @Param("head") String head);

    void register(@Param("userName") String userName,@Param("userPwd") String userPwd);

    int ifExistName(String userName);

    void updateUser(User user);
}
